home *** CD-ROM | disk | FTP | other *** search
/ 100 Plus Great Games 2 / 100PLUSV2.BIN / games / Train.dxr / Internal_6_actual bar.ls < prev    next >
Encoding:
Text File  |  2002-01-25  |  472 b   |  20 lines

  1. property pSprite, spriteNum, pTop, pBottom, pbar, psl
  2.  
  3. on getPropertyDescriptionList me
  4.   return [#pbar: [#comment: " ", #format: #integer, #default: 0]]
  5. end
  6.  
  7. on beginSprite me
  8.   pSprite = sprite(spriteNum)
  9.   pTop = pSprite.top + 16 + 7
  10.   pBottom = pSprite.bottom - 16 - 7
  11.   psl = sprite(pbar)
  12. end
  13.  
  14. on mouseDown me
  15.   if ((the clickLoc)[2] >= psl.pLine.pTop) and ((the clickLoc)[2] <= psl.pLine.pBottom) then
  16.     psl.locV = (the clickLoc)[2]
  17.     psl.positio()
  18.   end if
  19. end
  20.